/**
 * ReportGear(2011)
 */
package com.reportgear.report.model.script.function;

import net.abbp.core.util.DateUtils;


/**
 * 
 * 
 * @version 1.0 2011-6-6
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since Report 1.0
 */
public class GetCurrentDateTime extends AbstractFunction {

	@Override
	public Object exec(Object[] args) {
		return DateUtils.formatCurrentDateTime();
	}

	@Override
	public Type getType() {
		return Type.DATETIME;
	}

	@Override
	public String getDescription() {
		return "获取当前日期时间";
	}
}
